package com.ssr.master.common.service;

import java.util.List;

/**
 * @author ZhangPeng
 * @Describe //todo
 * @date
 * @updateBy
 * @other
 **/

public interface CrudService<T> {
    /**
     * 通过id查询数据
     *
     * @param id  数据主键
     * @return T
     * @Describe //todo
     * @author ZhangPeng
     * @date 2020/6/9 21:01
     * @
     * @other
     **/
    public T get(String id);

    /**
     *
     *
     *
     * @Describe //todo
     * @author ZhangPeng
     * @date 2020/6/9 21:02
     * @
     * @param var1
     * @return T
     * @other
    **/
    public T get(T var1);

    public List<T> findList(T var1);

    public List<T> findAllList(T var1);


    public List<T> findAllList();

    public int insert(T var1);

    public int update(T var1);


    public int delete(String var1);

    public int delete(T var1);
}
